package com.woniu.entity.Impl;

import com.woniu.entity.Person;

public class Wife implements Person {
    private String name;
    private String sex;

    public Wife(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Wife() {
    }

    public Wife(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println("老婆来了");
    }

    @Override
    public String toString() {
        return "Wife{" +
                "name='" + name + '\'' +
                '}';
    }
}
